package cn.gov.ssxmzj.mapper;

import cn.gov.ssxmzj.entry.News;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Mapper
@Transactional
public interface NewsMapper {

    List<News> getNews();

    List<News> getNewsById(String newsId);

    int getNewsCountByType(Map dataMap);

    List<News> getAllNewsByType(Map dataMap);

    List<Map<String,String>> managerGetAllNewsByType(Map dataMap);

    int deleteNews(String newsId);

    int changeNewsValidTag(Map dataMap);

    void addNews(News newsInfo);

    int modifyNews(News NewsInfo);
}
